
<table border=0>
  <tr>
    <td style="padding-right: 10px; border-right: 2px solid gray; width: 80px" valign="top">
        <p><i>Select:</i></p>

	% if featured is None:
          <p style="display: none"><a id="featured-switcher">Featured</a></p>
	% else:
          <p><a id="featured-switcher">Featured</a></p>
	% endif

        <p><a id="gds-switcher">Open GDS</a></p>
        <p><a id="sample-switcher">Sample Data</a></p>
      
    </td>
    <td style="padding-left: 20px" valign="top">     
	<div id="featured-content">
	<h3>Open a Featured Dataset</h3>
	<p>Below are datasets the administrators have chosen specifically for use with this instance.</p>

	<div style="overflow: auto; height: 230px; width: 100%; overflow-x: hidden;">
	% if featured:
  	% for i, sec in enumerate(featured['featured']):
  	  <h4><a href="#" onclick="$('#sec-${i}').toggle('fast');" id="sec-${i}-link">${sec.keys()[0]}</a></h4>
	  
          <div id="sec-${i}" style="display: none;">
	  % for j, dataset in enumerate(sec.values()[0]):
 	    <div style="margin-left: 20px;">

	      % if dataset.values()[0] is None:
	      	      <div style="width: 100%; padding: 4px; background-color: #333; border-radius: 15px;"><i>${dataset.keys()[0]}</i></div>
	      % else:
	       	      ${dataset.keys()[0]}
	      	      <button style="float: right; margin-right: 15px;" id="sec-${i}-${j}-button">Open</button>
	      % endif
            </div>
            <br>
	  % endfor
	  </div>
	% endfor
	% endif
	</div>
        </div>

	<div id="gds-content">
	  <h3>Open a GDS dataset</h3>
	  <input type="text" id="open-gds-dataset-url" value="" size=30>	  
	  <br>
	  <button id="open-gds-submit" style="float: right">Open</button>
	</div>

	<div id="sample-content">
	  <h3>Open an Sample dataset</h3>
	  <p><a id="open-monsoon-link" href="#">Monsoon Dataset (GDS)</a></p>
	  <p><a id="open-grads-link" href="#">GrADS Sample Model Data (Local)</a></p>	  	  
	</div>
	
      </td>
  </tr>
</table>
